package com.example.product.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.product.entity.Product;

public interface ProductService extends IService<Product> {
    Page<Product> getProductsByCategory(String category, int page, int size);
    
    boolean updateStock(Long id, Integer quantity);
    
    boolean createProduct(Product product);
    
    boolean updateProduct(Product product);
    
    boolean deleteProduct(Long id);
} 